var app = angular.module('webapp');
app.service('MonthlyService', ['$http','$q', MonthlyService]);

function MonthlyService($http , $q){
	return {
		getLevel2Menu:function(data){
			return handleRequest('GET','/getLevel2Menu',data,$http,$q);
		},
		getPower:function(data){
			return handleRequest('GET','/getPower',data,$http,$q);
		},
		getMonthlyAll:function(data){
			return handleRequest('GET','/getMonthlyAll',data,$http,$q);
		},
		addMonthly:function(data){
			return handleRequest('POST','/addMonthly',data,$http,$q);
		},
		uploadMonthly:function(data){
			return handleRequest('POST','/uploadMonthly',data,$http,$q);
		},
		removeMonthly:function(data){
			return handleRequest('POST','/removeMonthly',data,$http,$q);
		}
	};
}